Variant: add id field getter

closes #107
as usual, you've convinced me. I'll make a ticket.