Fixed the renaming pass to account for overloads of functions