Add type guards for variant and locale inputs at the WASM boundary and a js+wasm integration test suite for renderToString behavior. Co-Authored-By: Virgil <virgil@lethean.io>