backport (dpvc): Fixed a bug where substituting values into a Formula object would not be cleaned up properly (so later actions could incorrectly include the same substitution).
Changed paths: