Fix 1D distinct aggregation when aggregation attr is a ref
Add application initializer logging
Merge pull request #1950 from dennishendriksen/master

Fix 1D distinct aggregation when aggregation attr is a ref + add logging