Backport gmarkup fixes to 2.56
The Canonical security team indicated to us that they wanted these fixes, probably since they ended up getting CVEs assigned. I suppose it's not a bad idea to backport them anyway.
Note that we don't have b974cccd in glib-2-56
, so I had to resolve quoting differences in the code and the testcases.