-fixed crash with wrap_base
-script state getter binding