GROOVY-6134: Make @DelegatesTo support mapping to a generic argument type