Fix template test and array template ndim validation