Compare frame counts against parent AnimationSet

This checks the frame counts as they appear in the animation definition
files. It's mainly for Avatar animations, where all equipment animations
need to match the parent animations in frame count. An error message
will be printed when there is a mismatch.
Merge pull request #1273 from dorkster/fixes

Compare frame counts against parent AnimationSet