This also changes the semantics of of bin list of size 2, and also simplifies the histogram code slightly.