repository->type to not be required, fixes #1

r?