Serializer module: merged "object_convert" into the serialize function