Added ArgumentException for duplicate property names.