Check that shards don't contain duplicates.