improve dupfun.ml & add rename_ident.ml