packfile: convert unpack_entry to struct object_id