Add a "data" field to have the filter inside the select2 element, it's more efficient on small collections

This data field must be use on small collection of objects.

With this function, to give to the select2 element an array of objects and the select2 apply the search on the "text" field of each object in the array.

The text field compared is the one calculated by the "toText" function