Implement Clone for histograms

This avoids all the threading problems related to histograms that we've seen.