[jit] Properly wire the MGSC in the amd64 backend.
[jit]Replace usage of mini_type_get_underlying_type with first arg null with new function mini_replace_type.