Handles the case where a post request contains an array, and the array contains a regex.

The matching_hashes? method falls over if the post request contains an array, and the
array contains a Regex, since ['a'] != [/*./]. Here I convert the Array into a Hash, and we carry on the recursion.