fix toString and hashCode in BasicDistributionSummary