Extend typing of aggregate functions available from window functions.
Update window function example.