1. Notwithstanding any act which limits or affects the right of a person to maintain an action or proceeding, including, but not limited to, paragraph (b) of section thirteen hundred fourteen of the business corporation law and subdivision two of section two hundred-b of the banking law, any person may maintain an action or proceeding against a foreign corporation, non-resident, or foreign state where the action or proceeding arises out of or relates to any contract, agreement or undertaking for