Tests for QAST::Var with attribute scope.
Implement QAST::Var attribute scope.