implement generalized jot-dot. print (semi-)formatted arrays up to 4 dimensions.