Fix unserialization of nesteds