Better support for DependencyManager in the ScriptEngines class.