Changing the active animation changes the project and can be undone, so dirtying the project is correct.
Exporting can change paths and export settings that are stored in the project. This cannot be undone, but dirties the project so you know you need to save if you want to keep those settings. Previously we did not dirty the project and users were confused why their export settings were persisted only sometimes.
There can be scenarios where Spine has queued up undo commands that will later be purged. This is relatively rare and shouldn't cause any problems.