VMEmulator2.cpp for deterministic event testing. Simulator currentDate updating in the scheduler code. Fix a bug in scheduler.cpp:schedule(event e): a unlock(); was forgotten