fixed SymbolResolver to pass scopes through a STL stack