encodeObject as ZendAmf