Added back some toArray() implementations.
Merge branch 'master' of https://github.com/yiisoft/yii2 into advanced-app-travis