trivial: Fix up the gtk-doc markup for the last commit
Add mimetype data to the AsApp object

A typo was adding each mimetype as NULL, so we couldn't match on the mimetype
tokens. Fix this, and add critical warnings and self tests to catch this kind
of bug in the future.