Small optimization of rule matching loop

When looping though all the evidence sources, for a given rule, first check if the type of rule matches -- if it doesn't, then don't bother with the extra actions to get the value of "enabled". Also have the rule type string "preset" before doing the loop.