Review bugfixes.

* Don't send 2i results to the receiver if there aren't any.
* Fix path generation for integer indexes in range queries.