Explicitly set shape and dtype when copying datasets.