Raise a KeyError if tokens are non-unique in a dictionary when loaded from text.