Fix WindowFilterPushDown optimizer to handle other window functions correctly

Create a helper method `isRowNumber` that uses the metadata field, then these can be done on one line without the assignment:

```java
assertTrue(isRowNumber(new Signature("row_number", BIGINT, ImmutableList.<Type>of())));