[BUG #8116] Env checks for event constructors with custom types