Made coverBoundingBox() 38% faster by not converting hashes to strings.

Represent hashes by using longs and storing the hash length in the lower 4
bits (which enables for lengths upto 16).