Adding in basic JPA support for avg(), max(), and min() aggregation.