This should do semantic validation of the module according to the Wasm specification. Must also first check how much of that is done by pwasm.