Refactor packing of obj_destroyed and gc events