fixing ast creation so it doesn't remove value sliders, making AST redraw if showing when code changes