- create xstrdup() helper in libmisc
- fix leakage of function arguments on fatal type check errors
- try to fix leakage in parser on syntax errors
