CClientScriptTest has been advanced to expose issue #2770
CClientScript::renderScriptBatch() has been fixed to group scripts with different HTML options correctly.
Issue #2770 has been added to CHANGELOG
CClientScript::renderScriptBatch() has been improved to sort html options only if they are specified.
Merge branch 'master' of github.com:yiisoft/yii into 2770-client-script-render-script-batch
Merge branch 'master' of github.com:yiisoft/yii into 2770-client-script-render-script-batch
Order in CHANGELOG has been fixed.
Merge pull request #2772 from klimov-paul/2770-client-script-render-script-batch

Fixes #2770 CClientScript::renderScriptBatch()