Add missing 'self' in RayTree.ray_history.