Work around historic bugs.

Add logic to work around historic bugs in the chain.  (Including
libcoin's 'name stealing' and lenient name tx versions.)