Fixed major bug where all windowing functions were flat_top window functions. The bug was masked in the tests by the re-use of the variable 'win'.