This moves the duplicate-unique check from knownKeyNames (which omits TH) to allKnownKeyNames (which includes TH).