Small bugfix.

"RedeclarationCheck" used not to care about the identifiers' scope.