Simplify categorical mapper to use hidden data range

factor values are mapped to integers 1..N and the min and max are 0.5
and N + 0.5 respectively.