Issue29:  Set Groovy version to 2.2.0

Changing dependencies at gradle.properties, and correcting two minor undefined casting that made groovy static typing check failing in compile