Copying Sprites didn't copy the local variables

 * this fix will copy the local variables in the Sprite.clone() method
 * tested in new SpriteTest.testSpriteCloneWithLocalVariable() method