refs: convert read_ref and read_ref_full to object_id