Fix https://github.com/julianhyde/optiq/issues/288, "Add tests based for windowed aggregation on Postgres reference queries"