Fixed typo in BCP 47 variant sub-regex, improved singleton/variant dupe matching
Partial implementation of CanonicalizeLanguageTag