fix redeemPubKey for imported keys (fixes issue #350)