Optimize OPML export

Avoids looping over all subscriptions when building a category outline.