fix: `revertAll` must clear auxiliary declarations

This PR ensures that `revertAll` clears auxiliary declarations when
invoked directly by users.

closes #6263
2 files changed