Corrects WindowFunction handling

- now implements IWindowFunction