Patch from Radek that clears out references in destroyed bodies.

This makes it less likely that if a game hangs onto a reference to a destroyed
body, it will end up retaining a huge graph of bodies.