fixed JITFunction destructor order, removed likely_resource cached variables