Optional bases and things
Optional args
Merge branch 'ql-refactor' of github.com:rethinkdb/rethinkdb into ql-refactor