Preparations for RTLIL::IdString redesign: cleanup of existing code