BIF color components crashes with hsl/a #1618

There was a bug causing color components to crashes when called with hsl/a colors (an hsl/a color doesn't have a `r`, `g`, `b` or `a` property, except by forcing the convertion to rgba).

I've added many tests cases to figure the possible use cases.

So the issue #1618 is fixed. :)