Replace HexBits with HexStr template specialization

Probably there's more to unify here.
What about just `strprintf("%08x", nBits)`?