CLN: use 'codes' rather than 'values' internally in Categorical
In some places a variable has the name ``values``, where ``codes`` would be more logical, as we're dealing with codes.

This makes it a bit easier to understand what we're looking at when reading IMO,