Unflatten flattened representations of objects