Speed up stack profile computation for overload dispatch

- For (winfo ?(child)) in particular (i.e. a case where there are
  relatively many overload dispatches), this improves the performance
  by about 5%.