[jit] Fix --debug=casts support for casts in gshared methods.
[jit] Fix gshared and aot support for --debug=casts.