UnitAI uses SelectAnimation to define a custom animation, such as attack anime or gathering animations.
This must be reset when leaving the FSM state to "idle", otherwise we can end up in incorrect states.
This test is a little unorthodox since it runs on unevaled code, but it's rather efficient.
I have a hunch svn doesn't pass this, I've coded it for D13 where I fix these but splitting that diff has been a little annoying so haven't done it yet.