Check class of parent variable directly rather than using instanceof che...

...ck. Needed to get correct behavior for subclasses of ClassHierarchyMethodTargetSelector. Fixes #42.