Move the spender framework from feature_taproot.py to test_framework/spenders.py, and use it in a new feature_legacy_script.py test for script edge cases that other implementations have gotten wrong: CSV with -2, a 5-byte operand whose value fits in 1 byte, IFDUP on negative or non-minimal zero, ROLL with duplicate values, OP_16 in a P2SH scriptSig, and a P2SH scriptSig that leaves 1,000 items for the scriptPubKey to run on.
The first commit is move-only. The new test supports --dumptests like feature_taproot.py, which is how the cases get into the script assets.
These were discovered by finding gaps in alternate implementations (bitcoin-s and rbitcoin)
Script assets: bitcoin-core/qa-assets#297