Invalid superclass checking

The check performed by the Glossary on classes to see whether they are subclasses of other classes is faulty.