Renames overlapping variables to have unique names