gallium: Add and use a helper for packing uc from a color_union.