Moved toArray() from YiiBase to ArrayHelper.
Merge branch 'master' of github.com:yiisoft/yii2