Extend CIL code generator

add support for switch statements