Issue #2244359 by mondrake: Lazy-load GD resource in GDToolkit.
Issue #2315269 by sun: Fixed Entity/Query/Sql/QueryAggregate: PDOException: General error: GROUP BY clause is required before HAVING.