Adds nil-safe aggregates.
Cascalog 2 compliance.