Unit tests for [json-encode], including test for issue #30.
Implement integer for numbers. Fixes issue #30.