Variant: add id field getter

closes #107