Fix the usage of `iife` with `template`.

Specifying the `iife` option together with `template` no longer prepends
`null` to the output, and correctly strips the trailing `}(this));`
line.