Fix issue filtering for multiple tags
This fixes the "contact with tag filter" when you specify multiple tags.
$filter['value']
is a string (eg. "2,4" or "2") and casting to an array does not convert "2,4" in the array required for the whereclause. Use explode instead which converts both a single value to an array and multiple values to an array of values.