Fixed detection of public wires in opt_rmunused