39: ClassCastException in generator extensions 

Closes #39

Change-Id: Iaeff783ddbf0d0e8e28ad3eae0f533d17b84681b
Task-Url: https://github.com/LorenzoBettini/xsemantics/issues/issue/39