Tweaks to list.pop.