More script error checks in VarWorker.
Unit tests.
Issue #29