Codegen for cast expressions.
Fixed to-basec mapping of variable references and added statemachine execute builder.
Merge branch 'master' of https://github.com/metaborg/metac