Simulation plugin: improved the speed with which we check that constants and/or states have been modified.
Simulation plugin: made sure that we don't emit signal in our main simulation loop (closes #208).
Merge branch 'master' into issue31