Add the __index__ method to ndobject, filling the nb_index slot

This allows integer ndobjects to be the index into
lists, for example
Add some tests for the __index__/nb_index slot in ndobject