Better support for childDataType and complex ref counting.