Implement len() and the operators >, >=, < and <=.

Refs #5789