This commit needs review as it uses an ugly hack to make gimp_metadata_set_from_xmp() do what it wants.