[chapel-lang/chapel] add checking in doiSwap method

Branch: refs/heads/array-swap
Revision: 4c17de5
Author: mcdobe100
Log Message:

add checking in doiSwap method

Modified Files:
M modules/dists/BlockDist.chpl
M modules/internal/ChapelArray.chpl
M modules/internal/DefaultRectangular.chpl

Compare: https://github.com/chapel-lang/chapel/commit/4c17de579d0f