Improving coding style, fixing bug in Mvc\Collection::unserialize