[symtab] Add Stack.Replace()
[symtab] Fixed faulty loop causing nil deference in Stack
[symtab] Update example code