fixed message formatting for all the ICU versions

- refactored replaceNamedArguments.
- ensure gridview message works on all systems.

fixes #1072
Merge branch 'master' of github.com:yiisoft/yii2

* 'master' of github.com:yiisoft/yii2:
  doc fix
  Fixes #1134: doc fix.