GROOVY-7171: Add List.getIndices()
GROOVY-7171: DGM getIndices methods (changed List to Collection and also added object array for completeness)