Do not generate redundant Unit on the stack in for

 #KT-5667 fixed