Generalizing MemoryArena's allocation API.