runtime: add comparison functions to unit_t