[DDC-1952] Support for array parameters on the SQLFilter

Allows passing an array to SQLFilter parameter and have each item pass through quote() before turning the whole array into a comma-separated list.

For purpose see here:
http://www.doctrine-project.org/jira/browse/DDC-1952

Exception is made for types that Doctrine already recognizes as an array and stores as their derivate (array, simple_array, json_array).
this won't work for iterators, as they often don't return their value by reference (and if they do, you would be changing the content of the iterator, which may be equally wrong).

and ``$key`` is unused