[BUG #8471] allow duplicate event declaration for identical types
[BUG #8471] allow null as event type