fix Issue 12174 - Problems caused by enum predicate with std.algorithm.sum