(a) A unit owners' association may bring a civil action in superior court in the county where the condominium or the greater part thereof is located to reform the condominium instruments to resolve ambiguities, errors, or inconsistencies in the condominium instruments that are the source of legal and other disputes pertaining to the legal rights and responsibilities of the unit owners' association or individual unit owners. The condominium instruments may also be reformed to correct scrivener's errors, including incorrectly identifying the unit owners' association, incorrectly identifying an entity other than the unit owners' association, or errors arising from oversight or from an inadvertent omission or mathematical mistake. The superior court shall have jurisdiction over matters set forth in G.S. 47C-2-117(f) regarding ownership of marketable title of the common elements or units and may, upon consideration of pleadings and such other matters as the court may in its exercise of equity allow, order (i) reformation, in whole or in part, of any provision of the condominium instruments and (ii) correction of mistakes or any other error in the condominium instruments that may exist with respect to the declaration for any other purpose set forth in G.S. 47C-2-117.1(f).