region.py: Improve errors
Make the block index available to Block instances
Abort when encountering corrupted key counts
Abort when encountering cyclic references