fix a bug in type checking and add "match with type" command
Merge branch 'master' of https://github.com/ptal/nominal-workbench