wasm: Re-use genTypedValue for constants

When a constant will be passed by reference, such as a struct, we will call into genTypedValue
to lower the constant to bytes and store them into the `rodata` section. We will then return the address
of this constant as a `WValue`.
This change means we will have all constants lowered during compilation time, and no longer have
to sacrifice runtime to lower them onto the stack.
b9fe6a93ffLuuk de Gram committed on 1/19/2022, 9:29:36 PMparent1fe1e4d
2 files changedLine totals unavailable