Add serializable attribute to all messages.