Plain text pretty printing of containers.

Don't change the plaintext printing of containers unless they
contain only SymPy types.

Fixes issue 3513.
Clean up unused functions.