Honor JSON_DECODE_INT_AS_REAL at lexical stage

This has the consequence that numbers are never converted to integers
when JSON_DECODE_INT_AS_REAL is set, and thus it works correctly all
integers that are representable as double.

Fixes #212.