Implemented Capsule::SetDegenerate and Capsule::IsDegenerate. Fixed inconsistent Sphere::IsDegenerate and Sphere::SetDegenerate. Added degeneracy tests.