Add support for duplicate validation to list attributes

I think you meant this to be 371.