Fix name reporting bug in type checker.
Fix name reporting bug in type checker.

HIPERFIT/futhark,HIPERFIT/futhark,mrakgr/futhark,diku-dk/futhark,mrakgr/futhark,diku-dk/futhark,diku-dk/futhark,mrakgr/futhark,ihc/futhark,diku-dk/futhark,ihc/futhark,HIPERFIT/futhark,diku-dk/futhark,ihc/futhark,CulpaBS/wbBach