GROOVY-6053: Try iterating or transforming Object into Collection in Def...

...aultGroovyMethods like count(), sort() and other Collection methods.