Fix dispose() to correctly iterator over childRefs object.

AFAIK, only Array has a forEach method, not Object.