Improve addChild to accept direct Tree object