Wallet: refactor to use Array unspents solely, deprecating unspentsMap
tests: avoid use of deprecated APIs