Fix retarded.
Add tests for emitting binary and logical ops.