blockchain: Add block index key collision tests.
blockchain: Add block index key collision tests.

This adds full test coverage for the recently-added modifications to the
block index to work with short keys with collision handling.

decred/dcrd,decred/dcrd