Fixed dogecoin reorg bug that caused invalid work error due to BlockTree::height() returning negative values for non trunk blocks.

Added serialization test stub