Finally removed obsolete type "type", use ir_type instead