add typeOf and do to rethinkdb definitions