fix #8485 Add column groups to character matrix