correctly accept local ndarrays or subclasses of RemoteArray as input subarrays when initializing a DistArray