symm/blkc.h, symm/hash.h: Factor out pieces of the test machinery.