Test for walletbackup/walletdump RPC calls

This is also a test for rescanning for wallet transactions; I wrote it to help test #3694