Fix WindowFilterPushDown optimizer to handle other window functions correctly

Also, pull out the signature into a constant.