Replace use of ivy types in ModuleResolutionFilter

+review REVIEW-5257