Check-in [1283a17cbd1b1242] contains a test-case that illustrated this bug.