Add support for duplicate validation to list attributes

More efficient is if (!dups.add(element))