Parametrize EventEmitter so its chaining methods return proper type.