Add a fast path for file extensions so we don't walk the list of
allocations for workloads where we already know we want to either
extend, or add an element after, the last element.  Ref #924.