Issue29:  Set Groovy version to 2.2.0

A pull request is done. Besides changing dependencies at gradle.properties, I corrected two minor undefined casting that made groovy static typing check fail at compile.
I had forgotten a correction in my last pull request
https://github.com/vert-x/mod-lang-groovy/issues/29