Correctly handle unbalanced expressions

My parsley branch is damn slow, but at least it has found a bug in the parser :)