WIP fix.
nanshe/expanded_numpy.py: Added the function index_array_to_bool_array, which converts an index array to a bool array.