fix npe in CachingQueryRunner
Merge pull request #473 from metamx/fix-caching-npe

fix npe in CachingQueryRunner
support dimension extraction functions in group by
Merge pull request #474 from metamx/groupby-dimextractionfn

support dimension extraction functions in group by