Variant: add id field getter

closes #107
Should a std::string consisting of a single period be considered a missing value according to is_missing()?