fix some external bugs; now parameteric_plane keeps a unique set of chains, at the cost of more complex chain groups