Fixed a loooong standing bug that allowed redeclaration of identifiers in the same scope.