Fix retrieving big numbers with `.data()`

Don't compare numbers to their string value because they might end with
"e+32" or similar. Only treat as strings numbers that begin with zeroes.

Fixes #865, references #852