Fixed error in checking as-type patterns, resolves #697
Merge branch 'master' of github.com:cwi-swat/rascal