Serialize gestures and events for Dict as well