Add a flag to control how broadly aliases are available in GROUP BY / HAVING / ORDER BY.
Add some tests of the various cases.
Pass that along from rules tests and optimizer.
Add a test showing error where MySQL would allow expression.
merge MMcM: Add a flag to control how broadly aliases are available in GROUP BY / ORDER BY / HAVING

Merge pull request #1144 from MMcM/sql-layer/ais-binder-result-columns-available
https://github.com/FoundationDB/sql-layer/pull/1144