Add comparison op chaining and new comparison ops.

Fix a few small bugs.