Fixed missing semicolon in code generation

Though using string templates is more succinct for code generation, we
run the risk of forgetting to include mundane syntax like ; (semicolon)
that causes the entire generation to fail.

See #59.