def merge_array(query_param)
      arr = options["$query"]
      position = arr.index(arr.assoc(query_param[0]))

      if position.nil?
        arr.push(query_param)
      else
        arr[position] = query_param
      end
    end
def merge_array(query_param)
      arr = options["$query"]
      position = arr.index(arr.assoc(query_param[0]))

      if position.nil?
        arr.push(query_param)
      else
        arr[position] = query_param
      end
    end
Adds a query parameter to Montage::Query instances in the form of
 an array. Checks for existing array elements and replaces them if found.

 * *Args* :
   - +query_param+ -> A query-modifing parameter in the form of an array.
     Composed of a ReQON supported string as a designator and an
     associated value.

 * *Returns* :
   - The updated array