Merge pull request #1270 from dorkster/fixes

Fix off-by-one error when adding frames to Animations
Add bounds check when syncing Animations