Fixes for several small issues #15682, #15800

Fixes #15682 and #15800.

/cc @sirthias 
I assume that the test does the right thing, but it would be nice to see that `toLowerCase` and `toRootLowerCase` gives you different things, just to be certain that the "TR"  locale is in effect.