DynArray: fix error of no more than 5 dimension