Adding deepCopy function to FlxMisc.