Add residue_number to atom records and update selectors.