util.stanza.preserialize() returns a new table
util.stanza.deserialize() mutates the input and returns it
This is inconsistent and may cause issues if eg a serialized stanza in a larger stored object is deserialized and the object is then saved back.
I started working on this.
I suspect an issue in mod_cloud_notify might be related.