More compact printing of MX constants and sparsity patterns