fixes a long standing codegen bug concerning closures
fixes a long standing codegen bug concerning closures

singularperturbation/Nim,russpowers/Nim,tulayang/Nim,jfhg/Nim,haiodo/Nim,dom96/Nim,endragor/Nim,zachaysan/Nim,mbaulch/Nim,zachaysan/Nim,dom96/Nim,zachaysan/Nim,singularperturbation/Nim,russpowers/Nim,mbaulch/Nim,dom96/Nim,russpowers/Nim,singularperturbation/Nim,russpowers/Nim,haiodo/Nim,mbaulch/Nim,russpowers/Nim,dom96/Nim,mbaulch/Nim,jsanjuas/Nim,haiodo/Nim,jsanjuas/Nim,singularperturbation/Nim,jfhg/Nim,jfhg/Nim,haiodo/Nim,jfhg/Nim,jsanjuas/Nim,singularperturbation/Nim,haiodo/Nim,tulayang/Nim,tulayang/Nim,endragor/Nim,endragor/Nim,dom96/Nim,zachaysan/Nim,tulayang/Nim,zachaysan/Nim,jfhg/Nim,jsanjuas/Nim,singularperturbation/Nim,jsanjuas/Nim,jfhg/Nim,haiodo/Nim,mbaulch/Nim,zachaysan/Nim,mbaulch/Nim,russpowers/Nim,singularperturbation/Nim,dom96/Nim,dom96/Nim,jsanjuas/Nim,mbaulch/Nim,endragor/Nim,russpowers/Nim,endragor/Nim,haiodo/Nim,tulayang/Nim,jsanjuas/Nim,jfhg/Nim,zachaysan/Nim,endragor/Nim,tulayang/Nim,endragor/Nim