Fix WindowFilterPushDown optimizer to handle other window functions correctly

Actually, is there any point in calling `metadata.getExactFunction(X).getSignature()`? I think this just returns the input signature `X`.