Record apparent writes to scratch mem during SIOC* ioctls, and fix checksumming and memory-dumping code.