[cs] move StringMap key iterator into a class instead of dynamic object (~2.3x faster)