fix MigrateController
Moved toArray() from YiiBase to ArrayHelper.
Merge branch 'master' of github.com:yiisoft/yii2
Removed headers in ErrorHandler.
Added previous exception in toArray().
Recursively return previous exceptions in toArray().
Put back Yii::getObjectVars() and fixed infinite loop in Object::toArray().
Removed unused namespace.