Fix bug in test where a non-existent file would lead to the workflow1 sample path being loaded.
Add some missing deserialise methods.
Fix thread support.