Also check type when checking against dependencymanagement