Minor, extracted generateLoopBody
Generate substatements as statements too

Preventing pushing on stack redundant Unit instances

 #KT-5667 fixed
Generate blocks-statements through CodegenStatementVisitor
Changed generating logic for named functions

Generate it as a sequence of statements when it's possible