Re-implementing subtree generation for mutation

When a new node is needed because of moving from arity 2 to arity 3.