type inference for closures in groovy1.8