Added EventDispatcher to AutoloadGenerator constructor call