use the dispatcher interface for type hint

Allows the use of a composited EventDispatcher by type-hinting the interface instead of the concrete class.