glib2: add rbg_to_array()