Made boundary more robust for treeio