Fixed error with AvoidTypeInterfaceInconsistency rule.