Fixed codegen bug related to blocks and void