Section 28. A religious society incorporated under a special act shall have the powers set forth in the preceding section, anything contained in any special act of incorporation or amendment thereof, or in section one, to the contrary notwithstanding.