Fix aggregate functions cache

Fix https://github.com/phalcon/cphalcon/issues/2401