Fixed matchLanguage and matchCompiler
Used Either TypeError Type for encoding failures

  It will be also used for triggering error messages.
Merge branch 'master' into dev