Will write tests and fix, just putting as memo.
Describe the issue
Input selected by FundRawTransaction might be rejected by too-long-mempool-chain when actually broadcasted.
Expected behaviour
FundRawTransaction should not select input that would not be accepted in the mempool
Actual behaviour
FundRawTransaction select inputs that can be rejected by sendrawtransaction.