Fixed issue with wrong identifier type in name checker.
More cleanup of name clash checker.