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