Implement fast supertype lookup for PathVisitor methods.
Add tests of fast supertype lookup for visitor methods.