Fix broken test suite

I've fixed two problems with the test suite:

1. The test suite is now run against the repository itself, not the framework that happens to be installed on the system.

2. A bug in the CPArray category DeepEqual that made many tests fail.

I also fixed a unintentional global variable declaration that the new compiler warned about.