reshape for sharedarray
- validate dims
- set A.s correctly
- fix assert_same_host for case when myid() not in pids
Merge pull request #6535 from tanmaykm/sharedarray

reshape for sharedarray