Fix CanCreate handling and GROUP BY bugs.

1. OpenFile was not actually honoring Options.CanCreate.

2. SELECT * ... GROUB BY ... panicked.

3. Detection of aggregate functions presence failed some cases.