Core/SmartScript: Fix warnings