Fix ndindex for 0-d arrays.