Fix issues with joined lines and expressions

Joined lines were being evaluated backwards, and closing parens were
incorrectly assuming that the next operator was unary.