Improvements to to_indented_string().

Take optional initial indent level.

Drive-by improvements to take advantage of move semantics.
Update version and dependencies.
Fix and test for issue #6052.
Merge remote-tracking branch 'fnal/master'