Add comparisonChain()

A utility function for more involved comparisons, if you think it's worth including in the language module.