Add enum-equal.

Similar to enum=, but ignores the enum type and can compare an enum
with an integer.