fixes #1292
Merge branch 'next' of github.com:rethinkdb/rethinkdb into next