Fixed histogram serialization so that bin count is a double float so
that normalized histograms can be written/read.