handle NaN / Infinity values
Merge pull request #498 from metamx/fix-nan-serde

handle NaN / Infinity values