Correct handling of VarStatementNodes. Fixes #6