Fixed similar issues with data.frame containing lists.