Change typehints to allow TraceableEventDispatcher to be injected.