Refactoring visitor for type checking.
Merge branch 'master' of https://github.com/software-engineering-amsterdam/poly-ql