Reorg handling fixed again!

Apparently, I had broken it during one of the last few updates to the blockchain utilities, and never re-ran the unit test.  The test now demonstrates 100% proper handling of reorg and invalidated transactions.