Fix scalar/vector property error when drawing to cairo backends.