lir: fixed IR_KNUM and others.