Section 40. Such sums as may be decreed to be paid by the stockholders in such suit shall be assessed upon them in the proportions fixed in section thirty-five with respect to claims for contribution; but a stockholder shall not be liable to pay a larger amount than the amount of stock held by him at the time when his liability accrued, shares of stock with par value to be computed for this purpose at their par value as fixed at that time and shares without par value to be computed at the value, at the time of issue, of the cash, property, services or expenses for which they were issued, but not including paid-in surplus.