deque: avoid Copy in pop_{front,back}