* Fixed broken unit test (number of non-zero-entries != number of dimensions).
* Reformatting and fixing of debug output.