A provision of a lease held by the landlord or a superior landlord, or of an agreement (whenever made), is void in so far as it purports to prohibit or restrict—
or to authorise a forfeiture, or impose on the landlord or superior landlord a penalty or disability, in the event of such a grant or disposal.
Where a dwelling-house let on a secure tenancy is land held—
then, for the purposes of this Part, the dwelling-house shall be deemed to be freed from any trust arising solely by virtue of its being land held in trust for enjoyment by the public in accordance with section 164 or, as the case may be, section 10.