GROOVY-5924: Fixed several inference bugs/tests due to the introduction of closure parameter type inference
GROOVY-5924: Fixed broken tests