improve type stability of tail/front(::NamedTuple)
#46762
Merged
tail/front(::NamedTuple)
#46762