Printing columns with shape (n,1,…,1). Fixes #1522

Fixes #1522.