Fixed jumpy animations and created unit test to ensure the right amount of keyframes are made with multiple object_ref tags