Fix adding/removing child nodes by reference (Didn't work with strings).