fix scoping for TupleVarDeclarations