oid: support rich comparisons (less than, etc.)