ProcessingMessage: add .putSerialized(), deprecate equivalent .put()

Unlike the deprecated method, .putSerialized() takes an Object as an argument,
and will call JsonUtils.toJson() to serialize the value given as an argument.

Modify relevant code to use this new method.