Fixed std::isfinite compilation error on OS X.
Fix #2758.

The problem turned out to be a typo. In certain cases, sync_from() would throw sync_failed_exc_t even if a peer was connected, instead of waiting for metadata from the peer.

I also fixed a couple of minor style issues.

This has been reviewed by @danielmewes.
Revert "removing func_wrap of r.args in javascript and python drivers"

This reverts commit 8c51db31484f62d5556292145f4ce9ae1449354f.
Merge branch 'next' of github.com:rethinkdb/rethinkdb into next
Remove some mentions of bench/

Review 1816 by @danielmewes
Fix datum_t::drop_literals array case. Closes #2741
Merge branch 'next' into sam_2739
Merge branch 'sam_2739' into next
Merge branch 'next' into sam_2156