Add check for duplicate attribute value.

This check cannot be performed by a user of pyelftools as the attributes are presented as an OrderedDict.