cake2.x fixes ArrayDatasource

cake2.x corrections, E_STRICT, return empty array for empty $records, ...

also added the comparison enhancement from https://github.com/cakephp/datasources/pull/39