Simplified the name() and number() functions. They now handle complex spin selections.
Authored by: bugman 2008-04-25
Parent: [r6003]
Child: [r6005]