Fix escaping
Fix numerous NPE's and related bugs in the interpreter