Deallocate with the right Layout during downcast

Created by  David Tolnay  on October 8, 2019
Z4YYQXEE4OQPF22I4LD7RVQIBKK67AHCYR6C35MANUCIC4P3EPYQC
Change contents