Fix printNum() in native optimizer to print a double when exponent >= 100. Fixes #3095.
Add test for JS optimizer reading and writing LDBL_MAX (1.7976931348623157e308).
Merge pull request #3096 from juj/fix_large_double_exponent

Fix large double exponent