Fix invalid memory read

* Fix invalid memory read in Phalcon\Mvc\Router\Group
* Fix crashes under valgrind when Zend MM is used
* Double the number of preallocated frames (based on the longest execution path)
* More sanity checks for the debug mode