rebuild dist
correct handling of repeated attributes