Fixed a few memory leaks related to the modifiers support

Generated values are simply marked as destroy later in the Handler
class, previously these would just leak.

There still seems to be a memory leak when executing jitted code.
Althought this doesn't seem to matter if you simply reuse the Template
class.