Big cleanup in determine_op_and_col_and_correct_val() sub.