Description
By inspection found that while PState.setVariable was maintaining the changedVariableStack, other places that read variables were not.
Specifically, in DPath expression evaluation, VRef is not.
We should do all variable sets/gets from PState/UState so as to always maintain this stack properly.