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