refs: pass NULL to resolve_refdup() if hash is not needed