Make it easier to pass a single expression to aggregate().
Rewrite aggregate() to support computing aggregates on every attribute and attributes identified by index, and wrote a docstring.  Closes #35.