Draft: Fix various -Wshorten-64-to-32 warnings
See the commit messages for details. This is the first MR in a series of several which I’ll put together when I get time, nibbling away at the -Wshorten-64-to-32
warnings in GLib.
There are no significant bug fixes in this MR, it’s mostly silencing false-positive warnings.
Helps: #3527