Add support for an array of event types/extensions, fixes #17023