Rename Animation.animationEffect to effect and use a bool in exitModifyCurrentAnimationState
Make depth counting exception safe