fix dict and list dump in render_to(json)