repack_without_refs(): make the refnames argument a string_list