Flag duplicate

 #527
this should be:
``` file.semanticErrors.push(createDiagnosticForNode(declaration.name, Diagnostics.Duplicate_identifier_0, getDisplayName(declaration.name)));
```
so that the error range is not the whole function but the function name instead.