Add a helper class for on-stack lists.