Parse numbers more consistent with stdlib json (fixes tests)