Fix uninitialized memory access in switch AST node