refs: convert struct ref_entry to use struct object_id