ScopeStack improvements.