Maybe fix loading in aegisub 3.0.x?

Hahahaha yeah right.
Start of moonscript rewrite.

Bounds checking functions?