get_localarrays and get_ndarrays

Change `get_localarray` behavior to return `LocalArray` objects. Add `get_ndarrays` which returns list of the local ndarrays.