Add follow-chain sub which attempts to follow the chain of ownership of a curve in a shape_representation.