Yes, I tried the script and faced both the issues.
I tried with a priority 4 animation with my AO in both ON and OFF condition.
It tries to animate also when the object is rezzed to ground. Also the animation starts whether or not permission is granted.
Is there a fix ?