small fix to write of long double to xml and json writers