replace-object: allow lookup_replace_object to handle arbitrary repositories