ptype_get_idx
return *pos ? ptype_get_idx(seq, *pos - 1) : SEQ_START_TOKEN;
return ptype_get_idx(seq, 0);