refs: change signatures of get_packed_refs() and get_loose_refs()