Provide unknown-object codegen fast paths for getfield/isdefined (#46572)
I thought this might make inference a bit faster, but benchmark
results seem to be in the noise locally, probably because the
int being boxed is part of the box cache, so no allocation
actually happens. Nevertheless, it's a nice, simple, optimization.