BetSmartMedia/gesundheit — pull request #14 by shinuza (2013-01-31 09:32:24+00:00)
Title: Fixed aggreate aliasing not working properly

Hey again, previously

```coffee
select('t1', function (q) { q.agg({'foobar': 'count'}, q.p('id')) })
```

Would compile to

```sql
SELECT ([object Object](t1.id)) AS foobar FROM t1
```

This fix makes it compile to

```sql
SELECT count(t1.id) AS foobar FROM t1
```