Fix WindowFilterPushDown optimizer to handle other window functions correctly

Static import `getOnlyElement`