Fix invocation of functions with void return types
Allow generated functions to return void