QueueFileImpl actually cannot expand beyond 1G since the file length will exceed 2G when the queue file doubles in size at 1G. This fixes the problem by attempting to use up to 2G. Add a test to ensure that it does indeed use up 2G of space and no more.