fixed bug in closure translation, when closure implementation had type void