Function: GetSpellCaster(spell)
Description: Returns the caster of the supplied spell, or the current spell when the optional argument is omitted. The result retains the original actor allocation through the active callback; address reuse, runtime-ID reuse or reconnect does not replace a known caster.
Parameters:
spell(Spell, optional) - Spell to inspect; defaults to the current spell.
Returns: A Spawn reference, or no value (evaluates as nil) when the spell or caster is unavailable.
Spell caster lifetime: When this function reads a spell's caster, it retains that allocation for the native operation. Retirement or callback reentry cannot replace its caster with a different allocation at the same address or runtime ID. A known expired or cleared caster is not rediscovered through a replacement connection. An actor already owned by the active callback remains usable through that callback. See Lua actor lifetime.