first step of making the Seq of possible children into a Set
replacing Seq with Set
Wrapped node id int in a PozInt to give some more safety, though it is not as safe as scalactic's compile time checking