Fix for caching API queries.  Subroutine was not handling CGI parameter arrays correctly.