type check fixes on nested expressions.
Merge branch 'master' of https://github.com/software-engineering-amsterdam/poly-ql