medium: xmlutil: Compare attribute dictionaries properly
Ugh. Sometimes I question my decision to develop in a git repository
and push to a mercurial repository. Some fumbling with the last few
commits and things are just a complete mess.

Anyway, this commit should fix the XML comparison function so it
actually works and compares the attribute dictionaries correctly.