refs: convert peel_ref to struct object_id