Can now create a query with an array

It is now possible to use this code:

$type = new Type(...);
$type->search(array(...));