CLN: use reduce and try to cast names to uint8 if possible