fixed issue with meshs that have Geometric transforms (when using -g)
fixed broken JSON when NaN or Inf is output