serialization of CSSPrimitiveValue