Fixed serialization of NotificationMessage and added NotificationData.