Fixed the finding of classes to only return complete declarations.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
Merge pull request #174 from ddobrev/master

Fixed the finding of classes to only return complete declarations
Fixed a possible crash in the finding of classes by name.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>