Allowed ElementClass->toArray() to extend through children to better keep depth.