Religious or educational uses. On land owned or leased by the commonwealth or any of its agencies and subdivisions or bodies politic or by a religious sect or denomination, or by a nonprofit educational corporation, shall be permitted in all zoning districts subject to reasonable dimensional regulations (i.e., bulk and height of structures, yard sizes, lot area, setbacks, open space, parking, seating capacity, and building coverage requirements), as provided in MGL c. 40A, § 3.