Simple backtracking-based RI generation.

As of now it completely ignores tag balancedness.
Run test with backtracking RI generator too.