Fix WindowFilterPushDown optimizer to handle other window functions correctly

This is a weird dependency. I would move this outside where the `size == 1` check is being done.