Core / Scripting: fix a few warnings.