add failing tests for dangling parens

issue #13
fix paren validation

simplify the checks and fold them into pullSubExpressions
Merge pull request #14 from uniphil/dangling-paren

Fail on invalid parens