#1219 Corrected bugs in AnimationGroup for repeat counts and modes.