corrected code generation for catch, if-then-else and value block
corrected block code generation