We should probably canonicalize `dtype` here as well.