Make indent_loops handle forks & other code blocks

The fork/join pair can be used instead of begin/end to group statements
together. A singular case statement (or other code block) is now also properly
handled.
Make indent_if handle forks & 'else if' branches

The fork/join pair can be used instead of begin/end to group statements
together. Proper nesting depth is now also calculated for for 'else if' and
nested singular if statements.