Copy HistogramItem bins array so it doesn't get modified accidentally. Added tests for HistogramItem.

Fixes https://github.com/parkin/pypore/issues/2.