fixes bugs due to the change from string classpaths to arrays

This pull request fixes two bugs.

1. the template classpath which was added to the arguments was wrong
2. the debug output was wrong, because the toString method of arrays returns the type and a hex string representing the hashcode
this.classpath should be a constant. otherwise the test may or not pass depending on the system (the famous "flaky" tests").