Add Comparable support

Fixes #702 by adding support for Comparable expressions