Check for sensible indentation

The indentation rules are quite simple: each if() and foreach() block
must have its commands indented further in, each command in a block
including the top level should be on its own line and with consistent
indentation.

One more item off the list in #4
1.3.10