Part of #36692. This replaces the field-by-field construction of transaction inputs and outputs in mempool_tests with COutPoint, CTxIn and CTxOut constructor calls.
It keeps CMutableTransaction as the builder, since a CTransaction constructor taking inputs and outputs directly is still under discussion (#36696). If one is added, the vin/vout lists here can be passed to it directly. Either way, the declarative form makes the constructed transactions easier to read.
This change is test-only and does not change the constructed transactions.
The mempool_eviction bench and rbf_tests changes from the earlier version of this PR have been dropped, as they conflict with #36521. They can follow once that is resolved.