GROOVY-6953: Fix regression in static compilation wrt to @DelegatesTo and maps