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

Infer element type for general multi-dimensional getindex
Create and use versioned package dir by default.

* On linux, link to common cache dir