Add new regression test cases
Fix resolution of var with a function in fallback

The prior use of 'balanced-match' did not result in correctly matched
function parens.
3.1.1