strips out offending object part of error message when doing error comparison
Merge branch 'ql-refactor' of github.com:rethinkdb/rethinkdb into ql-refactor