Helper function to replace NULL values with NA, and unlist, which is useful in converting nested lists to data frames
unlist_and_replace_null(l)
l
A list