Cleaning C API for binCounts() and binMeans()