cleanup Ray and Raycaster.