Throw a ContextIndexOutOfRangeException when the user specified an index beyond the context. 

Fixes #146.