Netlist: introduced more consistent and general state saving. Useful for regression tests going forward.