Fix different array related stuff to avoid warnings

Initialize missing statements variable in QueryCache.php->invalidate
Merge pull request #38 from k00ni/fixWarnings

Fix different array related stuff to avoid warnings