Fixed dumpgen to work and not recursivly crash
Merge pull request #751 from lodle/dumpgen-fix

Fixed dumpgen to work and not recursivly crash