Various small backports to glib-2-82
This backports the following small merge requests which landed on main
shortly after I created the glib-2-82
branch. It would be nice (but mostly not essential; see below) to have them for the 2.82.0 release:
- !4209 (merged)
- !4210 (merged)
- !4212 (merged) (this one is essential for 2.82.0)