Extract scriptableClasses an an array.

Don't repeat ScriptableObject.defineClass for each sciptable class. Extract
scripable classes as an array and call ScriptableObject.defineClass for each
class.