area_colors kept a flat-area color only when no stored color lay within
PURE / 2 of it, while near_area_color matches within PURE. A color dropped
that way took its PURE neighborhood with it: with flat areas of 222 then
223 under a class named 228, 228, 227, a pixel of 225 lies within PURE of
223 but not of 222, and lost its class membership. Keep every distinct
flat-area color per class instead, and add a unit test for that case.