GEOS5672: fixed nested group loop
Merge pull request #176 from svzdvd/2.3.x-GEOS5672-selfreferentialgroup3

GEOS-5672: fixed nested group loop