Test setting ndarray slices with distarrays.
Make sure dtype is cast to a numpy dtype.