test: should include associations to findAndCountAll
Merge pull request #1187 from unlooped/findAndCountAllTest

FindAndCountAll test with associations
Prove with a unit-test that min() and max() do not work for date.
Introduced a aggregate() function in the DAOFactory so code can be shared.

Also made rawSelect's data-types options more extensible and implemented
the "DATE" case.
Add a test for max(String) and min(String) and support BIGINT as well.
Define the 'DECIMAL' data-type similar to how a FLOAT is defined.

This gives us the possibility to use "instanceof DECIMAL" when needed.
Also handle DECIMAL (similar to the way FLOATs are handled).

This should fix min() and max() for postgres.
Fixed 'type' property of DECIMAL.

This fixed query generation (before the column type was always DECIMAL,
even if DECIMAL(10,3) was specified).