Fixed the renaming pass to consider forward declarations and function type defs.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
Merge pull request #178 from ddobrev/master

Fixed the renaming pass to consider forward declarations and function type defs