Minor Anim refactor.
Added currently failing tests for StateAnim lifetime.
Fix StateAnim lifetime (#563).
Merge pull request #572 from libavg/bugfixes/stateanim_lifetime

Fix StateAnim lifetime bug (#563)