DamsObject now indexes rights classes, languages, repository and rightsHolder
Type-checking repos, to handle tests with stub repos, etc.