Switch generated code for code blocks to implement Callable interface

This allows for a return value, and for code to have uncaught
exceptions.