Disallow duplicate dataset accessions, closes #821.