Fix #798 "Index was outside the bounds of the array." during search. Cau...

...se - bad string parsing of package flattened dependencies.