Keeping issued P2SH scripts in sync with keys issued by underlying keychains.

It is then used for Wallet.isMine to work properly, for Bloom filter creation and in KeyChainGroup.toString