Parse back what to_string wrote.
the serialized form of a ItemKind
the matching ItemKind, or g_paste_item_kind_invalid