Add more input checks for some wasm-c-api functions (#1090)
Add more input checks for some wasm-c-api functions (#1090)

Protect wasm_valtype_new and wasm_tabletype_new from invalid inputs
bytecodealliance/wasm-micro-runtime,bytecodealliance/wasm-micro-runtime,bytecodealliance/wasm-micro-runtime,bytecodealliance/wasm-micro-runtime,bytecodealliance/wasm-micro-runtime,bytecodealliance/wasm-micro-runtime,bytecodealliance/wasm-micro-runtime,bytecodealliance/wasm-micro-runtime