Add quick json serialization to diagnosticmessage
Normalize events & properties serialization
remove static fields from primitivesschema