catacomb/__init__.py (_HashBase): Check that integers are within bounds.