Identify and extrapolate different shaped layers

We have a continuous curve, lets call it a tool path, many of the layers are identical, but a few are different, how do we isolate and list the different layers?

continuous curve path with different shapes.gh (9.5 KB)