(A) A trust of real or personal property created by an employer as part of a stock bonus plan, pension plan, disability or death benefit plan, or profit-sharing plan, for the benefit of some or all of the employees, to which contributions are made by the employer or employees, or both, for the purpose of distributing to the employees or their beneficiaries the earnings or the principal, or both earnings and principal, of the fund so held in trust is not invalid as violating the rule against perpetuities, any other existing law against perpetuities, or any law restricting or limiting the duration of trusts; but the trust may continue for the time that is necessary to accomplish the purposes for which it was created. The income arising from any trust within the classifications mentioned in this division may be accumulated in accordance with the terms of the trust for as long a time as is necessary to accomplish the purposes for which the trust was created, notwithstanding any law limiting the period during which trust income may be accumulated.
No rule of law against perpetuities or the suspension of the power of alienation of the title to property invalidates any trust within the classifications mentioned in this division unless the trust is terminated by decree of a court in a suit instituted within two years after June 25, 1951.