issue #147 - do not generate 'yield undefined' at the end of functions