Optimizations for row_number() window functions
Fix CROSS JOIN bug

Fixes #1548
Fix decomposable flag in AggregationCompiler