Add const qualifier to Event::type()