Remove broken unesed get_dist_matrix method
Merge pull request #430 from cowlicks/no-dist-matrix

Remove broken unused get_dist_matrix method
Reduce get_ndarray communication.
Make get_localarrays use apply. And use `get_localarrays`.
Make get_localshapes use apply
Use apply in decorators.py type resolution.