Support containers in getindices, add acceptance test