Add equality operators.

Support for ==, !=, >, >=, <, and <=.
Add tests.