Avoid extra allocas in dispatch codegen