hashsig: tighter imitation of David Barr's minhash implementation

This is a little bit messy, jamming two state variables into one.
With the additional internal state, the measured correlation for
whitespace-only changes is even higher.