make hasheq for java.math.BigIntegers conform with longs when in long range