ensure get_hits returns int32; avoid equal.outers in match_hashes - saves 75% of the time, and avoids exploding memory usage