Fixed various type errors discovered by TC
Merge branch 'master' of https://github.com/cwi-swat/rascal.git