SymVarAsgn: fix a bug in getAllSymbols()