Fixed read/write of c++ json maps with nonstring keys