Remove dead code in DynArrayIndex.
There’s a dead assignment in `DynArrayIndex` since [this commit](c45f7380815a8197ec3a6828c8d2a1dcbbcdce64).
Also, `typeInfo = nil` would be an internal error and deserves a crash inside `DynArrayIndex`, rather than returning `nil` and crashing the user code anyway.
[dai.patch](/uploads/62a354b35600731d65c9db8b31352737/dai.patch)
Alternative version with further refactoring (−15 LoC up from −10, and must be slightly faster thanks to skipping the last `elType2` read): [dai-v2.patch](/uploads/4523a232ebb18f0ecbdbc4e0054f1b96/dai-v2.patch).
Alternative version with only −14 LoC but crashing on `indices = []` instead of returning garbage, and probably even faster for the reason described in #40098: [dai-v3.patch](/uploads/e10c96b4e629bbaa529bff8c21d13ba7/dai-v3.patch).
issue