Fix for the new generate_spin_id_unique() function.
The precedence is now residue number then name, and spin name then number.
Authored by: bugman 2013-03-10
Parent: [r18742]
Child: [r18744]