Fixed bug with alpha variable for hsla/rgba. Closes #1685