GRADLE-2819: Add integration testcase for stackoverflow
GRADLE-2819: Fix calculation of rootproject/modules when root project has declared parent pom.