constant values undo

- fixed how constant values are implemented in replaceNode