Attempt at fixing #2522 by inserting named points into previously defined names in categories.