addmultisigaddress creates an address respecting the setting, being unable to generate a specific type of address without also adding it to the wallet seems wrong.

I suppose in the future `addresstype` may be refactored to be wallet-specific, which would leave this non-wallet rpc call without an argument. Perhaps there should just be an optional parameter to set it.
if (nDepth == 0 && pcoin->mapValue.count("replaces_txid")) {
            safeTx = false;
        }
        
        
        
        
        
        
        
        
        if (nDepth == 0 && pcoin->mapValue.count("replaced_by_txid")) {
            safeTx = false;
        }
        if (fOnlySafe && !safeTx) {
            continue;
        }
        if (nDepth < nMinDepth || nDepth > nMaxDepth)
            continue;
        for (unsigned int i = 0; i < pcoin->tx->vout.size(); i++) {