Made RDB_DECLARE_SEMILATTICE_JOINABLE and RDB_DECLARE_EQUALITY_COMPARABLE an option.
Made RDB_IMPL_EQUALITY_COMPARABLE actually be generated, used it some more.