Test whether as_strided preserves structured dtypes before using it