json: use INT64_MIN and INT64_MAX for parsing bounds checks.
bson: check return value of _bson_grow().