fixed json_term_t is_deterministic
Fixed build errors in release mode related to the switch to threadnum_t.
Merge branch 'next' of github.com:rethinkdb/rethinkdb into next
Merge branch 'next' into sam_97