GROOVY-6268: minor fixes in the lambda section