The preceding section shall not prevent any person creating a trust, from declaring to whom the lands to which the trust relates shall belong, in the event of the failure or termination of the trust, nor shall it prevent him from granting or devising such lands subject to the execution of the trust; and every such grantee shall have a legal estate in the lands, as against all persons except the trustees and those lawfully claiming under them.
MCL 555.17