Make Shape_i.__hash__ always return an int, not an numpy.int64 when i is such an object.

fix gh-2099