data: take nil into consideration when converting to list or sequence