Fixed bug which caused incorrect data to be returned by the OpenClCircuitSimulator when getting the circuit state immediately after setting the state.
Implemented simulation replay data recording and simulation replay.