Converts IndexErrors to NotImplementedErrors.

AFAICT, IndexErrors should be raised for out of bounds indexing and the
like; NotImplementedError is more appropriate here.
Merge branch 'odin' into feature/parameterless-local-functions