Store serialized objects in AmfObject instead of AmfItem*.

This needs some work once SerializationContexts are implemented to
properly handle object references.