Should not clear last label's polymorphic state after current label is popped Fix invalid func_idx check in opcode REF_FUNC Add check when there are extra unneeded bytecodes for a wasm function