Core/Spells: Change spell custom attributes definitions into enumeration.