Add a regression test for some weird behaviour when reindenting.
Fix reindent issue with blank lines.