Fix issues that come from upgrading to groovy 1.8.8

* for comprehension for Option were not working
* Monoid spec was failing with a classcast exception