fixed XML output escaping; better runtime error reporting; compile error when a do statement is not the first expression in its part