Validate that elements are added at most once