added pretty print for array of type T[N]