[GH-38] Fix bug in when method is scanned.
Add ListExpression, ForeachStatement and CatchStatement to the collection of variable definintions.