fix(filter): convert value of criteria to array if needed by REST API

if the REST API requires the value to be an array of strings (i.e. for the
properties candidateGroups and activityInstanceIdIn), the input is
converted to an array.

related to CAM-2848