Fresh understanding of the virus that causes chickenpox and shingles could lead to improved vaccines and diagnostic tests, a study suggests.