Updated diagnostics serialization with new tharsis-core diagnostics changes.