redefine StringMapSize

- fix a definition problem with StringMapSize
- add test cases for it