Handle non-numerically indexed arrays too
Tests for #803