Fix name propagation in error messages

Fixes #1225
Merge branch 'master' of github.com:idris-lang/Idris-dev