fixed wrong instance for first (reported by Michael Budde)
flat printing for zero-element matrices
improved tests