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
bind-to checked. Use iface address instead of loopback if available.
Merge pull request #6030 from amitmurthy/amitm/addprocs

--bind-to check prioritized. Use iface address instead of loopback if available.