Make histograms implement Img<LongType>

This makes them more powerful. Also expose a direct API for incrementing and
decrementing bins.