Fixes cloning of simulation commands from other contexts.
This caused the serialization test to fail as soon as a command was issued.