fix issue 11089 toUpper doesn't work with 1:m mappings

Also fixes a typo in generic toCase, adds test cases for
previously fixed issue 9629
fix issue 11057 [REG2.064dev] New std.uni has icmp() partly broken
Merge pull request #1594 from blackwhale/fix-icmp

Fix regression in icmp