Set rule type to constant name instead of array index of rule types