use more IR_RESOURCE_TYPE_VISITED, remove pointless inc_master_type_visited calls