Reversed change to make restructure_array static  - it is reused in MINC1