Tidy; std::extent<> over sizeof/sizeof; inclusion fix.

ScriptParser: using std::extent<> instead of sizeof/sizeof.
ScriptParser: included <cstdio> and qualified use.