Added a regression test for #2399.
Initialize reader_t::items_index
Check pseudo types before inserting them into a table.
Remove unused literals from results of merge
Added another test case to the 2399 regression ReQL test.
Reworked datum_t::drop_literals()
Reverted datum validation
drop_literals() doesn't copy the datum anymore if it doesn't encounter a literal.
Added r_sanity_check for nested literal keywords.
Fixed style problems.
Improved #2399 regression test.
Merge branch 'sam_style' into next
Merge branch 'v1.12.x' into next
Merging #2229 polyglot tests should wait for index

Putting an index_wait in wherever we create an index then try to use it. The review for this 1514.
initial commit for #2420 proto-def.js failing to be created when `make` called with `DEBUG=1 -j 16`

adding a requirement to two places that the JS_BUILD_DIR be created before putting files into it
fix from review 1516

replacing the new rule with the implicit rule '/.'
Merge branch 'larkost/2420-make-failing-from-proto-def.js' of https://github.com/rethinkdb/rethinkdb into larkost/2420-make-failing-from-proto-def.js