Add LEAF_IS_FIRST_IN_TREE to wrap