Compact transposition table

Further tweak the way the transposition table works, in a method
inspired by Crafty. Perf testing indicates that we can get the same or
better perf with a dramatically smaller transposition table (down to
about 40M from 512M before the last few commits).