Allow qualified column names w/ aggregate functions

I bumped into a problem when attempting to generate something like COUNT('tablename'.'column').