Several long-time production-tested syntax fixes

Hi @Seldaek, we've patched Dwoo quite a lot over the last years – you might even remember us emailing about some of these things. I moved those modifications over to GitHub now and offer you to pull them.

To my knowledge, there has never been any issue with these over the last 4 years in large-scale production use.