Replaced custom serializer with ZF2's Serializer object