Bech32 addresses in dumpwallet
Summary:
Output bech32 addresses in dumpwallet if address type is not as legacy
This is a backport of Core PR12315 (without the Segwit bits).
Test Plan:
make check
Reviewers: #bitcoin_abc, jasonbcox
Reviewed By: #bitcoin_abc, jasonbcox
Differential Revision: https://reviews.bitcoinabc.org/D3663