Fix bug with ir_if and with variable names in output. Selection works now. Branches, cases and loops left.