[Fix #631] Check that consecutive lines have the same indentation.

Lines inside if, when, def, etc that should have the same indentation are checked.