Fixed some iOS7 related bugs around casting parameters for CABasicAnimation.