fix serialization of javascript objects, maps, and arrays in CSV