wasm2c: Support sign-extend (#1679)
This doesn't touch the error when passing --disable-sign-extension to
wasm2c, but nothing really tests the --enable/--disable feature flags
anyway so it should be a non-issue.
(The casts are technically implementation-defined, but they're being
relied on elsewhere as well so it's a non-issue.)