Fixed the memory leak in the jitted code

It turns out that jit_type_t should be freed and this was generated
directly inside the constructor. As it's always the same anyway I
decided to just make it static.