Upon the issuance, sale and delivery or exchange of refunding bonds pursuant to this article:
(a)
If only the refunding bonds remain outstanding, such refunding bonds shall constitute indebtedness of the local agency issuing such bonds and shall be included in any computation of general obligation indebtedness of such local agency for purposes of any debt limitation applicable to bonds of such local agency under the principal act or for any other lawful purpose;
(b)
If both the refunding bonds and the bonds to be refunded remain outstanding for any
period of time following the date of the issuance, sale and delivery of the refunding bonds, then until the date on which the bonds to be refunded are no longer outstanding;
(i)
If the local agency has met the test of subdivision (a) of Section 53558 the refunding bonds shall constitute indebtedness of the local agency issuing such bonds and shall be included in any computation of general obligation indebtedness of such local agency for purposes of any debt limitation applicable to bonds of such local agency under the principal act or for any other lawful purpose, but the bonds to be refunded shall no longer be considered outstanding in any computation of the general obligation indebtedness of such local agency;
(ii)
If the local agency has met the test of subdivision (b) Section 53558 then such refunding bonds shall, until the date on which the refunding bonds are no longer
outstanding, constitute a special obligation of the local agency issuing such bonds and shall not be included in any computation of general obligation indebtedness of such local agency for any purpose, and the bonds to be refunded shall be considered outstanding in any computation of the general obligation bonded indebtedness of such local agency; but from and after the date on which the refunded bonds are no longer outstanding the refunding bonds shall constitute indebtedness of the local agency issuing such bonds and shall be included in any computation of general obligation indebtedness.