Be simpler in c++ histogram setup.

Because originally this code was templated for doing uint8 or uint16 and that's overly-complicated,
really.