Fixed error when trying to add new field to collection made from object
PHP5.3 and PSR2 fixes