Fixed typecasting bug

Fixed typecasting bug: when a color value is numeric it should be
typecasted to string. This prevents the color picker window from not
being launched.

Also fixed small visualisation issue with the color swatch preventing a
box collapse with css