Make tests pass with RethinkDB 1.8 / 1.9
This also implements the new optional argument handling of the index parameter and support for left_bound / right_bound optional arguments to between and slice.

Closes #32.