So, something like this would be useful:
public CClientScript registerScriptFile(string $url, integer $position=NULL, array $htmlOptions=NULL)
Notice the new $htmlOptions parameter. I know this means to modify almost 50% of Yii's core classes, but given the strange tendency of "cloud" providers of including weird ways to use their APIs, it is needed, IMO.
Please take it in consideration.