The Python binding tries FileStorage::write() overloads in declaration
order. pyopencv_to(bool&) accepts any integer scalar, so values outside
the int32 range were consumed by the bool overload and stored as `true`
in YAML, and as 1 in XML/JSON, even though write(int64_t) is exposed and
all three formats support 64-bit integers.
Declare the int64_t overload before bool.
Add a Python test that writes int32/int64 boundary values and checks the
serialized text for YAML, XML and JSON.