I'd call this unflatten since it is the inverse of flatten.