generators::internal0::generate() bug fix.
generators::legacy0 implementation.