Fixed bug in FieldStreamingJsonWriter

made code generated by serializer a little less nested too.