Unique mappings don't allow unique mappings to be iterated over twice. This is because the unique filter finds all the mappings in the first round - during the second iteration it needs to be reset otherwise all mappings have been seen before.
John, what is to be fixed here?
Ahh yes... I'll look into it. A bit crypic but basically you can use the new substructure matching in a way that actually doesn't work.