newtypes for node/residue indices. Close #7.