Resonant Phenomena in Slowly Irregular Rectangular Waveguides