Fix layering StringRef copy using BumpPtrAllocator.