OAK-325: QueryEngine can't handle node type hierarchies

Add full type information to SelectorImpl and index definitions and leverage it throughout the query engine

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