Replace HexBits with HexStr template specialization

Probably there's more to unify here.