Fix deserialisation of Cancel/CancelTask
Fix deserialisation of Triggers.