HistogramNd: fix copy() method signature