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