Implement serialization and deserialization of traces.
Test trace inclusion.