copy!(S::SharedArray, A::Array) should return S
Merge pull request #6519 from tanmaykm/sharedarray

copy!(S::SharedArray, A::Array) should return S