This fixes an issue with ndindex shape tuple recognition, and an issue
in the nditer where scalar input did not produce an empty index tuple.
To be able to fix nditer, an extra flag has been added: NPY_ITFLAG_SCALAR
and a new function NpyIter_IsScalar has been added to the nditer API.
Also a few tests have been added to make sure the ndindex behaves as