Add a self test that validates ref_get_offset_size()
Hopefully this can figure out what goes wrong with https://github.com/flatpak/flatpak/issues/3503
Hopefully this can figure out what goes wrong with https://github.com/flatpak/flatpak/issues/3503