Prevented one if block from having multiple elses

An attempted `else if` has rather unintuitive results otherwise.
This also corrects the error for an `else` appearing at the beginning
of a template.

Support for an `elif` block to follow.