Require braces after 'then' in if statement.

Currently if statements do not require a block after the 'then' keyword, allowing invalid code such as `if(true) then else {}`. This has been fixed, and also makes it consistent with the 'elseif' part of the statement.