Spotted a bug during self-review of 'ChunkedList' - have beefed-up its test to expose the bug, so the test is currently failing.
Fix for bug revealed by the test improvement in the previous commit.