Fixed the handling of duplicate BibTeXEntry and BibTeXString objects

When two or more objects have the same key, only the first is retained,
the others are discarded.