Merge pull request #842 from libexpat/issue-839-billion-laughs-isolated-external-parser

Prevent billion laughs attacks in isolated external parser (part of #839)