[MONDRIAN-1912] fixed state issue with calculated cells, removed temporary
work-arounds
[MONDRIAN-1572] added distinct subselect during many to many segment loads
to avoid duplicate records resulting in invalid results.
Merge branch 'evergreen' of https://github.com/wgorman/mondrian into evergreen