Switch to the friendly `gsize` type
Simplify the large string check

`FIX2INT` expects numbers less than `LONG_MAX`, so we do not need to
explicitly check that `latex_size` falls within the range. But, `gsize`
can be greater than `LONG_MAX`, so we’ll keep protecting against that.