Strange behaviour when using Groovy 2.0