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

Lines inside if, when, def, etc that should have the same indentation are checked.
Merge pull request #637 from jonas054/check_indentation_consistency

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