Don't create resolve implementation directly in a couple of places.
GRADLE-2920 - Make sure the root configuration is not evicted even if another version of the root module ends up selected. Still needs more work to retain the outgoing edges.