Fix codegen to compute the size of an allocation by multiplying the