Fix small bug in SampleReduce, plus set contiguous flag after RebuildViews
Fix small bug in SampleReduce, plus set contiguous flag after RebuildViews

cnerger/wnd-charm,cnerger/wnd-charm,colettace/wnd-charm,colettace/wnd-charm,cnerger/wnd-charm,cnerger/wnd-charm,colettace/wnd-charm,colettace/wnd-charm,colettace/wnd-charm,cnerger/wnd-charm,colettace/wnd-charm,cnerger/wnd-charm