Fix exception that arose from incorrectly deserializing the last_task.
Name the compareSerialization function correctly to override the superclass to get more helpful error messages.
Remove an attempt at serialising the name of the workflow that didn't remain the same across serialiasation/deserialisation/reserialisation, and which wasn't used in deserialisation anyway.