Put back Yii::getObjectVars() and fixed infinite loop in Object::toArray().