fix boolean aggregates (added documentation)