generators::legacy0::generate(): statement support + refactoring.
generators::legacy0::generate(): problem_{ml,tl} bug fix.