Add closure support for Groovy