I just found that the function search in OpenSCAD has a greater potential than the documentation may suggests. The examples in the manual are restricted to the search of characters and numerical values. However, it seems that any kind of object may be used in an appropriate call of search. For instance:
I did not dig deeper into glue() but if its intention is to eliminate point duplicates in a structure [points, faces] for polyhedron call, remember we don't need to do it because OpenSCAD (or CGAL) unifies polyhedron vertices with the same coordinates. I use that a lot without gluing.