Implement error event in DynamicDocument "invoke" expression, implement "assign value" command, fix bugs, add tests.