Infer element type for general multi-dimensional getindex
Merge pull request #4387 from simonster/getindex

Infer element type for general multi-dimensional getindex