Merged new array-of-array tests of swap utility from trunk to release branch, following changeset [49954].