Added serialization to the RayQueryTool, no specific reason, it just seemed like a good thing to do now that it has some state to serialize.