There is a branch in fill() - line 2059 - where the last element could be tail so it would fail this test.  I suspect that isn't correct.