Hi, I've rewritten rule dump entirely, instead of trying to dump rules in one pass complete ruleset is generated in memory. It can be later used to perform some additional manipulations. I've extended test and fixed the test suite. Now I'm working on adding more tests.