fix(injector): Injector.types should return types
fix(generator): should output deferred chunk even if empty
style: code cleanup
fix(injector): more accurate error message