Litter a few more chktype() calls around

Catches things before they try to access `STRUCT_REGISTRY` and throw a slightly less helpful error.

This happened when I naively tried to `unpack(io, Uint32)`. :P