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.
Merge pull request #73 from xavierhainaux/patch-2

Crash in Dartium when assigning an int to the alpha property