Fix "ArgumentException: An item with the same key has already been added" when an attribute has multiple named arguments with the same name.