make distribution immutable now that it contains mutable counters
Merge pull request #313 from julienledem/semigroup_stats

make distribution immutable now that it contains mutable counters