New range index: bug fixes and optimizations

* Rewrite expressions with multiple filters even if only one filter uses an index
* Fix NPE in range index lookup functions
* Configuration cleanup