Fixed a bug when using importaddress and signrawtransaction together
when providing privkey for the latter (it would overwrite mapPubKeys). Made mapPubKeys a field of CKeyStore instead of global variable.