#4566 Export simulation's parameters and app state to JSON in order to reproduce bugs
and invariants.