JSGlobalObject type macros should support feature flags and WeakRef should have one