Fix Search's next()

The next() method in the Cursor class is returning an arrayref,  which was not playing nicely with the inflation of the objects.