Fixed some problems with fancy indexing on multidim carrays.  Fixes #36