Use IEvent's type property for Trigger and GetBinding

This resolve an issue when dispatching custom event classes.