Adds JSON serialization in Float class.

Handles NaN and infinity properly.
Merge pull request #107 from peelonet/json-number-fix

Adds JSON serialization in Float class.