fix: `revertAll` must clear auxiliary declarations (#6386)

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

closes #6263
2 files changed