Converts old/new type of OpenCV HaarCascade xml data to trackingJs' internal format.