DRILL-3378: Don't invoke ensureType() while rewriting aggregate expressions part of the window frame.
ensureType() currently is not aware of the precedence of data types and may inject a downward cast, causing wrong results.
Bump Calcite version to r11