Use exp format and more precision output for ZSCAN.

Ref: issue #2175
Handle infinite explicitly in createStringObjectFromLongLong().
Regression test for issue #2175.