loplugin:unreffun: also warn about redundant redeclarations

Change-Id: I9a812220b58cf6da00d854e65794f7c673ab239d