Adds a check for identically named locals