Part of #36692. Follow-up to #36750
Replaces field-by-field construction of inputs and outputs with COutPoint, CTxIn and CTxOut ctor calls in txpackage_tests, bench/duplicate_inputs and script_p2sh_tests.
CMutableTransaction is kept as the builder while a CTransaction constructor is discussed in #36696. Witnesses are still assigned after vin, since CTxIn has no witness argument yet.
Test-only; the constructed transactions are unchanged.
script_p2sh_tests: two outputs created byvout.resize(1)never had a value, so their nullnValue(-1) is now explicit.- Intentional mutations are left as they are: the
scriptSigswap insign, the dummy signing inValidateInputsStandardness, and the witness-only copies intxpackage_tests(mtx_child2,mtx_parent2_v2).