glib: Fix aliasing violations in gchecksum.c