BS-8600: fix rename and delete of a widget name being referenced in a
Groovy Script. The undo still requires two actions, one for teh
graphical part, one for the refactoring. Still require to write some
tests