Fix some issues with tree breaking, and move NMS utils to refleciton. (untested)