vptranslator: rewrite

Rewrite vptranslator (the thing that transform a ValidityPattern in human readable form).


My comment was confusing, can you explain how you're doing it.
for instance I don't get why: 
  if (idx_begin <= idx_end) {
     res += 2;