Allow weak references to pygame_sdl2 classes.