GROOVY-6112: Support AST transforms on the field generated by @Field in scripts
minor refactor
GROOVY-5449: @Immutable should not throw NPE if an unmanageable type is used