Revert "Switch to the friendly `gsize` type"

This reverts commit 2b46558409d1bd4ba7b171b7086010ad358ab98f.