Add unit tests for u16string.
Fix bugs found via u16 unit tests.