fixed bug in set (null reference exception), and allowed for json data in arrays in query params