Add support for segwit to importmulti, supports P2WSH, P2WPKH, P2SH-P2WPKH, P2SH-P2WSH. Adds a new witnessscript
parameter which must be used for the witness scripts in the relevant situations.
Also includes some tests for the various import types.
Also makes the change in #14019 redundant, but cherry-picks the test from that PR to test the behavior (@achow101).
Fixes #12253, also addresses the second point in #12703, and fixes #14407