Returns the set of "fundamental" states seen in a column (possibly including the gap "state").
If `countMissingStates` is true then missing data is treated as an observation of each state. If it is false then missing codes do not contribute to the count. Partially ambiguous states result in all states in the cell being counted as observed.
columnIndex should be in [0, nchar)