Convert int to double in the alpha setter

This fix a bug in Dartium that happens occasionally when we assign an int to the alpha property.