It's sometimes useful to test a deployment on other networks than regtest. This may be e.g. because regtest lacks a property relevant for the test, or simply because the test aims to be portable while regtest is Bitcoin Core specific.
This PR makes it possible to set the -vbparams and -testactivationheight options on any network in unit tests, and on any test network as a startup option.
This is preparatory work for a BIP 54 implementation, but may be useful separately.