Fix bounds on object pointer iteration.