Make Event::new take enumerated values instead of booleans (fixes #3643)

r? @jdm