Fix aggregate arguments being reordered in wrong way by optimize block
Prepare to publish snapshots
Test for aggregate inside optimize block
Merge pull request #25 from DarkDimius/fix-aggregate-in-optimize

Fix compile error if aggregate with different method signatures is used in optimize{} block