Replace nested slices with contiguous
Update doc for NewArray