Make events.state pickleable again