Fix cakephp/debug_kit#285

I've tried to improve recursion detection by avoiding any false positives.