BuildQuery given option to pass single item for and/or determination

Now, if you pass an array with a single element into the andOr parameter
of the BuildQuery method, that value will be used for all items in the
where array.