fix paper>>resetCells() so that links are added always after elements and then resorted according to z