Use 0 as invalid index.
Check LUAI_EXTRASPACE size.
An optimization ('is process on stack' boolean).
Extra debug checks (lifetime).