Fixing POL_Die and POL_Restart
Fix problem with references in Script classes