privat/nit — pull request #404 by privat (2014-04-16 20:35:54+00:00)
Title: Fix some AST bugs

`transform` and `rta` have some issues that lead to inconsistant information on the AST.
This series fixes them.

Note: Most commits extracted (cherry-picked) from #386 and #367