CoreMacros: Added semicolon before else and elseif.

Fixes one-liners of type {if}...{else}...{/if} with inline if statement inside the conditional block.
See #1296 for more details.