I forgot to add what it's being used for! I saw a comment in the 4.1 release announcement that we should be raising an exception if a duplicate enum value is used. This helps with that. I've added that feature to the PR now.