OAK-637: Optimize SelectorImpl.evaluateTypeMatch()

Add special case for nt:base.
Incrementally build sets of matching and non-matching types instead of always reading all types in the beginning.

git-svn-id: https://svn.apache.org/repos/asf/jackrabbit/oak/trunk@1447649 13f79535-47bb-0310-9956-ffa450edef68