improve *-of-type pseudo selectors

This fixes the *-of-type pseudo selectors when a class name is specified (part of Issue #394) with the element being searched for.  Added tests for that scenario and they are all passing.