Rename function -get-index to -get-scale-number

The function -get-index() has been renamed to -get-scale-number(), as it
actually returns the scale number from its name, and not a zero-based
index.