Improve error output of Dictionary and JSON serializer tests.
Subworkflows use internal_data in a very unhelpful way. They also depend on an external XML file, so serialising them is dubious to begin with. Emit a warning if a TaskSpec for a subworkflow is serialised, and outright refuse to serialise a SubWorkflow Task.