Assorted Buffer optimizations
Use Buffer instead of Writer to compute stack path
Optimize VarRefHash
Optimize EvalContextVariablePutSpecial
Resolve policy only when inputs are unresolved