Various improvements

- improve xml security on XenForo installations that have been updated
with the xml checker. To be  clear: there was only a risk if you
imported a malicious BbCode xml; so if you download files from
authenticated developers, it's not a problem.
- the tags map is now compatible with the preCacheBase (the tags
incremention data has to be reset before the loop)