JavaScriptCore memory leak fixes to handle pointers to structs with a %extend destructor. The generator was not generating and connecting the needed code for the requested destructor to the JSCore finalizer.

Usage case:
    struct MyData {
       %extend {
         ~MyData() {
           FreeData($self);
         }
       }
     };
     %newobject CreateData;
     struct MyData* CreateData(void);
     %delobject FreeData;
     void FreeData(struct MyData* the_data);

	 where the use case is something like:
	   var my_data = example.CreateData();
	   my_data = null;