Added support for event handlers that are generic (don't take a concrete type for the parameter).