maple_tree: should get pivots boundary by type