Add greater() and less() to number type. Closes #411