Adds construction of reql_types.

Can actually compare dates now.
Makes type_of work correctly on pseudo types.
PSEUDO -> PSEUDO_TYPE.
Adds add_txn_t to datum_t.

This helps enforce that pseudo types remain valid.