Fix different array related stuff to avoid warnings

Initialize missing statements variable in QueryCache.php->invalidate