GROOVY-6779: Groovysh ":purge all" and ":show all" commands fail

Use property access instead of field access to load closures of functions, so the "do_all" closure can be loaded.