TMDM-7672: "Report warning that unused reusable type in the data model for Inheritance sub type while it shouldn't"

Updates unused type validation rule to take into account type inheritance.
Adds unit test for new validation changes.
(https://jira.talendforge.org/browse/TMDM-7672)