Merge pull request #89 from ayanes/master

Support NaN and Infinity