FlxGradient: fix gradients with more than two colors, closes #1312