Modified generate_spin_id() to handle None and int entries in the data array.
Authored by: bugman 2008-03-23
Parent: [r5191]
Child: [r5193]