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