search(): fix crash bug and add additional capabilities

search(4,[1,2,3]) crashed OpenSCAD. Instead of crashing, one can now search vectors for matching elements.
In addition, search([[1,2]],[[0,1],[1,2],[2,3]]) will work and return [1].

`100% tests passed, 0 tests failed out of 437`