Fixed problems with SlidingWindows in monasca-thresh.