The restrictions in sections 14, 16 and 17 shall not apply in the case of a transfer of property for the benefit for the public in the advancement of religion, knowledge, commerce, health, safely, or any other object beneficial to mankind. ...