Allow index specification on qname instead of full path (to keep it compatible with lucene index and old range index).
Key might be empty in range:equals.
Fix NPE in range query rewriter