Fixed issue with NamedElement not having a name causing null pointer
exception.
Addition to Issue #126
now also handle subprogram group and thread group (no space to space)
Changed method name for checking classfier references as it only checks
that the qualifying package is listed in the with clause.