Refactor BIP32 -> HDPrivateKey and HDPublicKey

Any reason to not use `typeof(data) === 'string'` here?