When looking matches in hierarchy subclasses, also search in modules