MDL-43175 events: Changed JSON encoding decoding comparison to be less strict.

Debugging messages would be sent when other contained a float that is a whole number.
When encoding and decoding using JSON the number is changed to an integer and the
comparison fails.
MDL-43175 events: Base event unit tests for JSON encoding / decoding comparison.