eb6b5332a0
This was particularly nasty to track down, the bad alts left in this way are zero-weight, zero-tag alts that point out of the bounds of the rbyd. This creates an immovable-object/unstoppable-force situation since the alt that will never be followed should always be followed. This ended up creating a confusing issue later since grows can follow this alt and cause the alt state to fall apart. The solution is to check for shrink leaves that drop to weight zero and prune them. This has a side-effect of nicely handling over-sized shrinks, though these shouldn't happen anyways and are being asserted on. Because I really, really don't want a regression, I've added a specific test for this, though the minimal reproducible case is a bit complex. The state of the rbyd is rather sensitive and it's not fully clear to me what ultimately triggers the breakdown of the rbyd tree. Also added a slightly better check for grow/shrink tags on altle leaves. I don't know if this is strictly required but I know it keeps me sane.