Fix dispose() to correctly iterator over childRefs object.