Issue 92 aggregate functions always returning ints