Modified add children to allow adding children of any type which extends
from anode