Issue with Array conditions

Fixed issue with array conditions. The toString() call was generating
an array-formatted string instead of putting the plain object in the
Map to be serialized into a json array.