updates and fixes for bvh4 subtree construction