Make Row type comparable

This PR addresses #1957 to make ``row`` type comparable and implements the ``EQUAL`` and ``NOT_EQUAL`` operators for the ``row`` type.
`element` could be null, in which case this would cause a NPE. You should check `element == null` before this if else, and call `.appendNull()` instead, if it is null