Renamed serializeFromCollection to serialize and deserializeAsCollection to deserialize.