list.ungroup function

Ungroup a list by taking out second-level elements