Refactor packing of object_space_dump event