It is necessary to dispatch the correct JPH::Shape dtor, even though it's stored as a a CPhysCollide*. This should fix #58