GROOVY-7175: add DGM indexed methods (rework indexed(Iterator) variant)