Adds lower axes indices to the last axe into ndarray.