GROOVY-5907 Object.with seems to lose typing when generics are used
GROOVY-5907 Object.with seems to lose typing when generics are used (minor tweaks)
Merge branch 'GROOVY-5907'