[geometry] implemented collect_vectors for non-directional geometries like linestrings (for now SIMPLE VERSION not working properly for some special case of self-touching linestrings and multi_linestrings), used non-directional version in equals(Ls, Ls), enabled support for dimension > 2 in equal(Ls, Ls)