BUG: Fix logic in ndindex to match __init__ method.   Fixes bug in ndindex((3,))