Fixing repository importer code

Repository#create_with_importer_and_distributors should be able to handle both
a hash and importer object. Fixing the code to support this.