Bug 6113 - Wrong result when using analytic function on a view

Fixed fix_fields functions for window function items in item_window_function.cc.